home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Sources / MacApp.r < prev    next >
Encoding:
Text File  |  1996-04-03  |  5.7 KB  |  228 lines  |  [TEXT/MPS ]

  1. // MacApp.r
  2. // Copyright © 1986-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. // MacApp® Common Resources
  5.  
  6.  
  7. // • Auto-Include the requirements for this source
  8. #ifndef __TYPES_R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #ifndef __ViewTypes__
  17. #include "ViewTypes.r"
  18. #endif
  19.  
  20. // NOTE:
  21. //    By Toolbox convention, the OK button is item 1 and the Cancel button is item 2.
  22.  
  23. resource 'aedt' (kAEDispatchTable) {                // Minimum for AppleEvent aware application
  24.     {
  25.     'aevt', 'ansr', cAppleEventReply;
  26.     'aevt', 'oapp', cFinderNew;
  27.     'aevt', 'odoc', cFinderOpen;
  28.     'aevt', 'pdoc', cFinderPrint;
  29.     'aevt', 'quit', cFinderQuit;
  30.     }
  31. };
  32.  
  33. resource 'aedt' (kAECoreSuiteTable) {
  34.     {
  35.     'core', 'clon', cAEClone;
  36.     'core', 'clos', cAEClose;
  37.     'core', 'cnte', cAECountElements;
  38.     'core', 'crel', cAECreateElement;
  39.     'core', 'delo', cAEDelete;
  40.     'core', 'doex', cAEDoObjectsExist;
  41.     'core', 'qobj', cAEGetClassInfo;
  42.     'core', 'getd', cAEGetData;
  43.     'core', 'dsiz', cAEGetDataSize;
  44.     'core', 'gtei', cAEGetEventInfo;
  45.     'core', 'move', cAEMove;
  46.     'aevt', 'odoc', cAEOpen;
  47.     'aevt', 'pdoc', cAEPrint;
  48.     'aevt', 'quit', cAEQuit;
  49.     'core', 'save', cAESave;
  50.     'core', 'setd', cAESetData;
  51.     'aevt', 'rec1', cAERecordingOn;
  52.     'aevt', 'rec0', cAERecordingOff;
  53.     'misc', 'undo', cAEUndo;
  54.     'misc', 'redo', cAERedo;
  55.     'misc', 'past', cAEPaste;
  56.     'misc', 'cut ', cAECut;
  57.     'misc', 'copy', cAECopy;
  58.     'misc', 'rvrt', cAERevert;
  59.     }
  60. };
  61.  
  62. #if qPowerTalk
  63. resource 'aedt' (kAEMailSuiteTable,
  64. #if qNames
  65.     "PowerTalk event table",
  66. #endif
  67.     purgeable) {
  68.     {
  69.     'MAIL', 'send', cAESend;
  70.     'MAIL', 'oLet', cAEOpenNextLetter; 
  71.     }
  72. };
  73.  
  74. resource 'STR#' (kAOCEStrings,
  75. #if qNames
  76.     "AOCE Strings",
  77. #endif
  78.     purgeable) {
  79.      {    /* [1] */    "Please enter the password for your master key";
  80.         /* [2] */    "Add Mailer";    
  81.         /* [3] */    "Delete Mailer";
  82.     }
  83. };
  84. #endif
  85.  
  86. // Empty script
  87.  
  88. data 'scpt' (128
  89. #if qNames
  90.     , "Empty Script"
  91. #endif
  92. ) {
  93.     $"4661 7364 5541 5320 312E 3130 312E 3130"            /* FasdUAS 1.101.10 */
  94.     $"0E00 0000 040F FFFF 0001 0002 0003 01FF"            /* ......ˇˇ.......ˇ */
  95.     $"FF00 000D 0001 0002 6C00 0200 0000 00FF"            /* ˇ..¬....l......ˇ */
  96.     $"FEFF FD01 FFFE 0000 01FF FD00 000E 0002"            /* ˛ˇ˝.ˇ˛...ˇ˝..... */
  97.     $"0000 0F10 0003 0002 FFFC 0004 01FF FC00"            /* ........ˇ¸...ˇ¸. */
  98.     $"0010 0004 0000 6173 6372 0001 000C FADE"            /* ......ascr....˙fi */
  99.     $"DEAD"                                               /* fi≠ */
  100. };
  101.  
  102.  
  103. resource 'STR#' (kIDBuzzString,
  104. #if qNames
  105.     "IDBuzzString",
  106. #endif
  107.     purgeable) {
  108.      {    /* [1] */    "Save this document as:";    // Std File prompt
  109.         /* [2] */    "Save a copy in:";            // Std File prompt
  110.         /* [3] */    "Show Clipboard";            // used as menu command
  111.         /* [4] */    "Hide Clipboard";            // used as menu command
  112.         /* [5] */    "Undo <<<>>>";                // used as menu command
  113.         /* [6] */    "Redo <<<>>>";                // used as menu command
  114.                                                 // for Undo and Redo, the <<<>>> string will be replaced
  115.                                                 // by the name of the command                
  116.         /* [7] */    "Unable to display contents at the moment";
  117.                                                 // used when Clipboard cannot be displayed
  118.         /* [8] */    "untitled <<<>>>";            // name of an untitled document with sequence number >= 2
  119.                                                 // the <<<>>> string will be replaced by a sequence number
  120.         /* [9] */    "closing";                    // see Alert 110: "Save changes before ___"
  121.         /* [10] */    "quitting";                 // see Alert 110: "Save changes before ___"
  122.         /* [11] */    "Can't Undo";                // used as menu command */
  123.         /* [12] */    "save";                     // see Alert 113: "Do you want to ___ anyway?" 
  124.         /* [13] */    "revert";                    // see Alert 113: "Do you want to ___ anyway?"
  125.         /* [14] */    "Hide Borders";                // used as a menu item
  126.         /* [15] */    "Show Borders";                // used as a menu item
  127.         /* [16] */    "Subscriber Options…";        // used as a menu item
  128.         /* [17] */    "Publisher Options…";        // used as a menu item
  129.         /* [18] */    "untitled";                    // name of the first untitled document
  130.     }
  131. };
  132.  
  133. resource 'STR#' (kViewStrings,
  134. #if qNames
  135.     "View strings",
  136. #endif
  137.     purgeable) {
  138.      {    /* [1] */    "Clipboard";
  139.         /* [2] */    "Window";
  140.         /* [3] */    "button";
  141.         /* [4] */    "checkbox";
  142.         /* [5] */    "radio";
  143.         /* [6] */    "cluster";
  144.         /* [7] */    "popup:";
  145.         /* [8] */    "static text";
  146.         /* [9] */    "edit text";
  147.         /* [10] */    "0";
  148.         /* [11] */    "";
  149.     }
  150. };
  151.  
  152.  
  153. /* ===========================     TextStyle resources    ============================= */
  154. resource 'TxSt' (kSystemFontTextStyle, "System Font", purgeable) {
  155.     tsPlain,
  156.     12,
  157.     {0, 0, 0},
  158.     ""
  159. };
  160.  
  161. resource 'TxSt' (kApplFont9TextStyle, "9 pt Application Font", purgeable) {
  162.     tsPlain,
  163.     9,
  164.     {0, 0, 0},
  165.     "a"
  166. };
  167.  
  168. resource 'TxSt' (kApplFont12TextStyle, "12 pt Application Font", purgeable) {
  169.     tsPlain,
  170.     12,
  171.     {0, 0, 0},
  172.     "a"
  173. };
  174.  
  175. /* =========================== Drag and Drop cursors ============================ */
  176.  
  177. #if qDrag
  178.  
  179. resource 'CURS' (kOpenHandCursor, 
  180. #if qNames
  181.     "Open hand",
  182. #endif
  183.     locked, nonpurgeable) {
  184.     $"0180 1A70 2648 264E 1249 1249 6809 9801"
  185.     $"8802 4002 2002 1004 0804 0C0C 07F8 07F8",
  186.     $"0180 1BF0 3FF8 3FFE 1FFF 1FFF 6FFF FFFF"
  187.     $"FFFE 7FFE 3FFE 1FFC 0FFC 0FFC 07F8 07F8",
  188.     {3,3}
  189. };
  190.  
  191. resource 'CURS' (kClosedHandCursor, 
  192. #if qNames
  193.     "Closed hand",
  194. #endif
  195.     locked, nonpurgeable) {
  196.     $"0000 0000 0000 0000 0DB0 124C 100A 0802"
  197.     $"1802 2002 2002 2004 1004 0C08 07F8 07F8",
  198.     $"0000 0000 0000 0000 0DB0 1FFC 1FFE 0FFE"
  199.     $"1FFE 3FFE 3FFE 3FFC 1FFC 0FF8 07F8 07F8",
  200.     {3,3}
  201. };
  202.  
  203. #endif
  204.  
  205.  
  206. //    /* ======================= PowerPC configuration resource ======================== */
  207. //    
  208. //    #ifndef THINK_Rez
  209. //    #if qPowerPC
  210. //    
  211. //    #if !qTheDebugger
  212. //    Include "NotPPC.rsrc" not 'vers';    // Include resources to display alert if run on non-PPC Mac
  213. //    #endif
  214. //    
  215. //    #endif
  216. //    #endif // THINK_Rez
  217.  
  218.  
  219. /* ===========================     other resources    ============================= */
  220. #ifndef THINK_Rez
  221. #include "ErrorMgr.r"
  222. #include "BusyCursor.r"
  223.  
  224. include "Memory.rsrc" not 'vers';
  225.  
  226. #include "DeskScrapView.r"
  227. #endif // THINK_Rez
  228.